<include file="Public:_head" />
<include file="Public:left" />

	<div id="neirong">
 		<!--<h2 class="lm_title">模板管理</h2>-->
            <div id="ZhiWei">
                     <h3 class="subTitle"><img src="com_statics/images/icon_13.gif" alt="图片描述"/>模板管理<span>添加模板，可以帮助您更快的发布职位！</span></h3>
                    <table width="100%"  class="tables"border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <th scope="col" width="55">&nbsp;</th>
                        <th scope="col" >模板名称</th>
                        <th scope="col" width="200">更新时间</th>
                        <th scope="col" width="140">操  作</th>
                      </tr>
					  <volist name="templates" id="h">
                      <tr>
                        <td><input name="checkbox" type="checkbox" value="{$h.template_id}" /></td>
                        <td>{$h.template_name}</td>
                        <td>{$h.updateline|date="Y-m-d H:i",###}</td>
                        <td><a href="{:U('Hiring/edit_template',array('template_id'=>$h['template_id']))}" class="btn_04">编辑</a> <a href="javascript:void(0)" rate="{$h.template_id}" class="btn_05">删除</a></td>
                      </tr>
					  </volist>
                    </table>
                   
            </div>
            <!-- ZhiWei结束 -->
	</div>
	<!-- neirong结束 -->
	<span class="clear"></span>
	<!-- 清除浮动 -->
</div>
<!-- container结束 -->
<script>
	$(document).ready(function(){
		
		$('.btn_05').click(function(){
			var con = confirm('确定删除该模板吗？');
			if(con){
				element = $(this);
				hid = element.attr('rate');
				$.post('__URL__/del_template',{tid:hid},function(res){
					if(res.status){
						location.reload();
					}
				},'json');
			}
		});
	});
</script>
<include file="Public:bottom" />